class RegisterApi:
    @classmethod
    def tpshop_veriify(cls, session):
        resp_v = session.get(
            'http://hmshop-test.itheima.net/index.php?m=Home&c=User&a=verify&type=user_reg&r=0.09049678162438579')
        return resp_v

    @classmethod
    def tpshop_login(cls, session, user_body):
        user_code = "http://hmshop-test.itheima.net/Home/User/reg.html"
        user_headers = {"Content-Type": "application/x-www-form-urlencoded"}
        rep_user = session.post(url=user_code, headers=user_headers, data=user_body)
        return rep_user
